ANativeWindow_setBuffersGeometry

Change the format and size of the window buffers.

The width and height control the number of pixels in the buffers, not the dimensions of the window on screen. If these are different than the window's physical size, then its buffer will be scaled to match that size when compositing it to the screen. The width and height must be either both zero or both non-zero.

For all of these parameters, if 0 is supplied then the window's base value will come back in force.

\param width width of the buffers in pixels. \param height height of the buffers in pixels. \param format one of the AHardwareBuffer_Format constants. \return 0 for success, or a negative value on error.

extern (C)
int32_t
ANativeWindow_setBuffersGeometry
(,
int32_t width
,
int32_t height
,
int32_t format
)

Meta